package homework.day06;

public class Account {
    private int id;
    private    String  Name;
    private    String  Password;
    private    int  Telno;
    private    double Balance;

    public Account() {
    }

    public Account(int id, String name, String password, int telno, double balance) {
        this.id = id;
        Name = name;
        Password = password;
        Telno = telno;
        Balance = balance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String password) {
        Password = password;
    }

    public int getTelno() {
        return Telno;
    }

    public void setTelno(int telno) {
        Telno = telno;
    }

    public double getBalance() {
        return Balance;
    }

    public void setBalance(double balance) {
        Balance = balance;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Account{");
        sb.append("id=").append(id);
        sb.append(", Name='").append(Name).append('\'');
        sb.append(", Password='").append(Password).append('\'');
        sb.append(", Telno=").append(Telno);
        sb.append(", Balance=").append(Balance);
        sb.append('}');
        return sb.toString();
    }




}
